package holiday_demo.classAndInterface.demo09;

public class Demo01Main {
    public static void main(String[] args) {
        //创建英雄角色
        Hero hero=new Hero();
        hero.setName("亚索");
        hero.setAge(20);
        Weapon weapon=new Weapon("破败王者之刃");
        hero.setWeapon(weapon);
        hero.attack();
    }
}
